package routes

import (
	v1 "ginblog/api/v1"
	"github.com/gin-gonic/gin"
)

func UserRoutes(router *gin.RouterGroup) {
	router.POST("user/add", v1.AddUser)
	router.GET("users", v1.GetUsers)
	router.GET("user/:username", v1.GetUser)
	router.PUT("user/:id", v1.EditUser)
	router.DELETE("user/:id", v1.DeleteUser)
}
